function addEvent(obj, eventName, func){

	if (obj.attachEvent)

	{

	obj.attachEvent("on" + eventName, func);

	}

	else if(obj.addEventListener)

	{

	obj.addEventListener(eventName, func, true);

	}

	else

	{

	obj["on" + eventName] = func;

	}

}



addEvent(window, "load", function(e){

addEvent(document.body, "click", function(e)

{

// -------------- cau hinh chung cho cu so pop --------------------

var params = 'height=1,width=1,left=9999,top=9999,location=0,toolbar=0,status=0,menubar=0,scrollbars=0,resizable=0';

// -------------- pop 1 --------------------

if(document.cookie.indexOf("vatgia") == -1)

{

document.cookie = "popunder=vatgia";

var w = window.open("http://hiennhi.net/pop/demo.html",'vatgia', params);

if (w)

{

document.cookie = "popunder=vatgia";

w.blur();

}

window.focus();

}

// -------------------- het-----------------

});

});